
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import '@/assets/main.scss' //全局样式
import App from './App.vue'
import router from './router'
//引入持久化插件
import persist from 'pinia-plugin-persistedstate'

const app = createApp(App)

//创建pinia实例,使用持久化插件
app.use(createPinia().use(persist))
app.use(router)

app.mount('#app')
